<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="index2.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>Trang chủ </a> <a href="#" class="current">Phân Quyền</a> </div>
  </div>
  {$notice}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> 
          <div class="buttons">
	       <a title="Icon Title" class="btn btn-mini" href="index.php"><i class="icon-align-left"></i>Quay về trang danh sách</a>							
        </div>
          <span class="icon"> <i class="icon-align-justify"></i> </span>
            <h5>Xử lý phân quyền</h5>
          </div>
          <div class="widget-content nopadding">
          <form name="admin_id" method="get"> 
            <select name="id" onchange="document.admin_id.submit()">
                <option >Select a customer:</option>
                    {foreach $read_admin as $k=>$v}
                        <option value="{$v.id}" {if $v.id==$decentralization.id}selected="selected"{/if}>{$v.admin_name}</option>
                    {/foreach}
            </select>
          </form>
            <form action="decentralization_sm.php" method="post" class="form-horizontal" enctype="multipart/form-data">
            <input type="hidden" value="{$decentralization.id}" name="data[id]"/>
                {foreach $read_folder as $k=>$v}
                <table width="300" style="float:left;">
                    <tbody>
                        <tr>
                            <td width="243"><div><input type="checkbox" value="{$k}" name="decentralization[]" class="checker"/>{$k}</div>
                            {foreach $v as $v1}
                                <div style="margin-left:50px">
                                    <p>
                                         <input type="checkbox" value="{$k}_{$v1}" name="decentralization[]" {if in_array("{$k}_{$v1}",$save_decentralization) == 1} checked="checked" {/if}/>{$v1}
                                    </p>
                                </div>
                            {/foreach}
                            </td>
                        </tr>
                    </tbody>
                </table>
                {/foreach}
             

                            
             
             

              

                
             
              <div class="form-actions">
               <button type="submit" class="btn btn-success" name="save_continue">Lưu và tiếp tục</button>
                 <button type="submit" class="btn btn-success" name="save_exit">Lưu và thoát</button>
                  <button type="button" class="btn btn-success" onclick="window.location.href='index.php'">Không lưu</button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
